package com.ruoyi.common.core.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * 级联对象
 *
 * @author siashan
 * @date 2024-05-25
 */
@Data
public class CascadeVo {
    /**
     * value
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long value;

    /**
     * label
     */
    private String label;


    /**
     * 父ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 禁用
     */
    private boolean disabled;

    /**
     * 子节点
     */
    private List<CascadeVo> children;
}
